package com.moduls.interfaceFunction.excel.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 供应商计划表
 * @author pc
 *
 */
public class SupplyPlayBean {

	private String order_item_id;
	private String company;
	private String kehu_company;
	private String item_name;
	private String val_names;
	private String unit;
	private String actual_num;
	private String customer_note;
	
    public SupplyPlayBean() {
		
	}
	public SupplyPlayBean(Map<String, Object> map) {
		if (!(map.get("order_item_id") == null || map.get("order_item_id").equals(""))) {
    		this.order_item_id = map.get("order_item_id").toString();
		}
    	if (!(map.get("company") == null || map.get("company").equals(""))) {
    		this.company = map.get("company").toString();
		}
    	if (!(map.get("kehu_company") == null || map.get("kehu_company").equals(""))) {
    		this.kehu_company = map.get("kehu_company").toString();
		}
    	if (!(map.get("item_name") == null || map.get("item_name").equals(""))) {
    		this.item_name = map.get("item_name").toString();
		}
    	if (!(map.get("val_names") == null || map.get("val_names").equals(""))) {
    		this.val_names = map.get("val_names").toString();
		}
    	if (!(map.get("unit") == null || map.get("unit").equals(""))) {
    		this.unit = map.get("unit").toString();
		}
    	if (!(map.get("actual_num") == null || map.get("actual_num").equals(""))) {
    		this.actual_num = map.get("actual_num").toString();
		}
    	if (!(map.get("customer_note") == null || map.get("customer_note").equals(""))) {
    		this.customer_note = map.get("customer_note").toString();
		}
	}
	
	public static List<SupplyPlayBean> getBean(List<Map<String, Object>> list) {
		List<SupplyPlayBean> supplyPlayBeans = null;
		if (list != null && list.size() > 0) {
			supplyPlayBeans = new ArrayList<>();
			for (Map<String, Object> map : list) {
				supplyPlayBeans.add(new SupplyPlayBean(map));
			}
		}
		return supplyPlayBeans;
	}
	
	public String getOrder_item_id() {
		return order_item_id;
	}
	public void setOrder_item_id(String order_item_id) {
		this.order_item_id = order_item_id;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getKehu_company() {
		return kehu_company;
	}
	public void setKehu_company(String kehu_company) {
		this.kehu_company = kehu_company;
	}
	public String getItem_name() {
		return item_name;
	}
	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}
	public String getVal_names() {
		return val_names;
	}
	public void setVal_names(String val_names) {
		this.val_names = val_names;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getActual_num() {
		return actual_num;
	}
	public void setActual_num(String actual_num) {
		this.actual_num = actual_num;
	}
	public String getCustomer_note() {
		return customer_note;
	}
	public void setCustomer_note(String customer_note) {
		this.customer_note = customer_note;
	}
	
}
